﻿using System;
using System.Data;
using System.Windows.Forms;

namespace AshuSoft.Test
{
    internal partial class TableDataViewerForm : Form
    {
        private readonly DataTable _table;
        private readonly string _caption;
        internal TableDataViewerForm(DataTable table, string caption)
        {
            _table = table;
            _caption = caption;
            InitializeComponent();
        }

        private void TableDataViewerFormLoad(object sender, EventArgs e)
        {
            this.Text = _caption;
            dataGridView1.DataSource = _table;
        }
    }
}
